<?php
/**********************************************************************//**\file
	Armory Fetch fopen

	Description:  Provides an fopen implementation method for armory-fetch.php
*******************************************************************************/

	class armorynetfopen
	{
		protected $options;

		function __construct()
		{
			GLOBAL $constants;

			$this->options = array(
				'http' => array(
					'method' => 'GET',
					#'user_agent' => $constants['user_agent'],
					'timeout' => 5
				)
			);
		}

		function get($url)
		{
			$context  = stream_context_create($this->options);

			return file_get_contents($url, false, $context);
		}
	}
?>
